<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<HEAD>
     <TITLE>Basefont</TITLE>
     <link rel="stylesheet" type="text/css" href="../../../ss/2.css" id="thecss">
     <script type="text/javascript" src="../../../scripts/csschange.js"></script>
</HEAD>

<BODY onload="readSS()">

<br>
<center>
<table border=3 cellpadding=5 cellspacing=0>
<tr>
     <td><h1 class="pagetitle">Basefont</h1>
         <b><a href="../../../misc/suppkey.htm">Support Key:</a></b> 
         [<span class="ns">2</span>|<span class="ns">3</span>|<b><i class="fs">3.2</i></b>|<b class="s">4</b>] 
         [<b class="s">X1</b>|<span class="ns">X1.1</span>]
         [<b class="s">IE1</b>|<span class="ns">M</span>|<b><i><u class="sr">N1-N4.x</u></i></b>|<b class="s">O2.1</b>]</td>
     <td><a href="#what">What is it?</a><br>
         <a href="#attrib">Attributes</a><br>
         <a href="#example">Tag Example</a>
     </td>
     <td><a href="#model">Parent/Content Model</a><br>
         <a href="#tips">Tips &amp; Tricks</a><br>
         <a href="#peculiar">Browser Peculiarities</a></td>
</tr>
<tr><td align=center colspan=3>
<font size=2>= <span class="sitetitle">Index DOT Html</span> by <a href="../../../misc/email.htm">Brian Wilson</a> =</font>
</td></tr>
</table>

<font size=2>
     <a href="../../index.html">Main Index</a> |
     <a href="../../tree/htmltree.htm">Element Tree</a> |
     <a href="../../tagindex/a.htm">Element Index</a> |
     <a href="../../supportkey/a.htm">HTML Support History</a></font>
</center>
<hr align="center" width="25%">

<br><br>
<table border=1 cellspacing=0 cellpadding=5>
<tr><td>
<table border=0 cellspacing=0>
<tr>
   <th colspan=3 valign=bottom class="field"><big><u><b
       class="colheaders">&#160;&#160;&#160;Quick Statistics&#160;&#160;&#160;</b></u></big><br></th>
</tr>
<tr><th align=left><b class="l3heading"><a href="../stats.htm#et">End Tag:</a></b><br></th>
    <td rowspan=7>&nbsp;&nbsp;</td>
    <td><span class="magicword">Required</span></td></tr>
<tr><th align=left><b class="l3heading"><a href="../stats.htm#std">Standards Details:</a></b><br></th>
    <td>Deprecated in HTML 4.x and XHTML 1.0. Dropped in XHTML 1.1.</td></tr>
<tr><th align=left><b class="l3heading"><a href="../stats.htm#xhtm">XHTML Modules:</a></b><br></th>
    <td><b class=alert>Legacy</b></td></tr>
<tr><th align=left valign=top><b class="l3heading"><a href="../stats.htm#disp">CSS 'display' Type:</a></b><br></th>
    <td>"<b class="alert">inline</b>"</td></tr>
<tr><th align=left valign=top><b class="l3heading"><a href="../stats.htm#css">CSS Mapping:</a></b><br></th>
    <td><span class="property"><a href="../../../css/properties/font/fontsize.htm">font-size</a></span>,
       <span class="property"><a href="../../../css/properties/font/fontfamily.htm">font-family</a></span>,
       <span class="property"><a href="../../../css/properties/colorbg/color.htm">color</a></span></td></tr>
<tr><th align=left><b class="l3heading"><a href="../stats.htm#rnd">Default Rendering:</a></b><br></th>
    <td>Depends on the attribute values set</td></tr>
<tr><th align=left><b class="l3heading"><a href="../stats.htm#w3docs">Official Docs:</a></b><br></th>
    <td><a href="http://www.w3.org/TR/html401/present/graphics.html#h-15.2.2">HTML 4.x</a>, 
        <a href="http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_legacymodule">XHTML 1.0</a></td></tr>
</table>
</td></tr>
</table>

<a name="what"></a>
<dl>
<dt><big><b class="mainheading">What is it?</b></big>
    <dd>This element changes the default font attributes that all contained
        text is based on. While none of the attributes for this element are
        required, this element will not have any effect unless at least one of
        the attributes is present.
</dl>


<a name="attrib"></a>
<dl>
<dt><br><big><b class="mainheading">Common Attributes</b></big>
<dt><b class="subheading">%<a href="../attributes/core.htm">Core</a>%</b>
    <dd>[<span class="ns">2</span>|<span class="ns">3</span>|<span class="ns">3.2</span>|<b><i class="fs">4</i></b>] 
        [<b class="s">X1</b>|<span class="ns">X1.1</span>]
        [<b><i class="fs">IE3</i></b>|<span class="ns">M</span>|<b><u class="sr">N4B5-N4.x</u></b>|<b class="s">O7</b>]

<dt><b class="subheading">%<a href="../attributes/accessibility.htm">Accessibility</a>%</b>
    <dd>[<span class="ns">2</span>|<span class="ns">3</span>|<span class="ns">3.2</span>|<span class="ns">4</span>] 
        [<span class="ns">X1</span>|<span class="ns">X1.1</span>]
        [<b><i class="fs">IE4B1</i></b>|<span class="ns">M</span>|<span class="ns">N</span>|<span class="ns">O</span>]

<dt><b class="subheading">%<a href="../attributes/events.htm">Events</a>%</b>
    <dd>[<span class="ns">2</span>|<span class="ns">3</span>|<span class="ns">3.2</span>|<span class="ns">4</span>] 
        [<span class="ns">X1</span>|<span class="ns">X1.1</span>]
        [<b><i class="fs">IE4B1</i></b>|<span class="ns">M</span>|<span class="ns">N</span>|<span class="ns">O</span>]

<dt><b class="subheading">%<a href="../attributes/language.htm">Language</a>%</b>
    <dd>[<span class="ns">2</span>|<span class="ns">3</span>|<span class="ns">3.2</span>|<span class="ns">4</span>] 
        [<span class="ns">X1</span>|<span class="ns">X1.1</span>]
        [<b><i class="fs">IE4</i></b>|<span class="ns">M</span>|<span class="ns">N</span>|<span class="ns">O</span>]

<dt><br><big><b class="mainheading">Specific Attributes</b></big>
<dt><b class="subheading">Color</b>
<dt>[<span class="ns">2</span>|<span class="ns">3</span>|<span class="ns">3.2</span>|<b><i class="fs">4</i></b>] 
    [<b class="s">X1</b>|<span class="ns">X1.1</span>]
    [<b><i class="fs">IE1</i></b>|<span class="ns">M</span>|<span class="ns">N</span>|<span class="ns">O</span>]
    <dd><b class="l3heading"><a href="../stats.htm#std">Standards Details:</a></b> 
        Deprecated in HTML 4.x/XHTML 1.0; Dropped in XHTML 1.1;
    <dd><b class="l3heading">Required?</b> No
    <dd><b class="l3heading">Description:</b><br>
        This attribute specifies the default color of the enclosed text.
    <dd><b class="l3heading">Values:</b> <a href="../../../misc/glossary.htm#cdata">CDATA</a>.
        [The standard <a href="../../../color/colors.htm">HTML color specification</a> methods apply.]

<dt><b class="subheading">Face</b>
<dt>[<span class="ns">2</span>|<span class="ns">3</span>|<span class="ns">3.2</span>|<b><i class="fs">4</i></b>] 
    [<b class="s">X1</b>|<span class="ns">X1.1</span>]
    [<b><i class="fs">IE1</i></b>|<span class="ns">M</span>|<span class="ns">N</span>|<span class="ns">O</span>]
    <dd><b class="l3heading"><a href="../stats.htm#std">Standards Details:</a></b> 
        Deprecated in HTML 4.x/XHTML 1.0; Dropped in XHTML 1.1;
    <dd><b class="l3heading">Required?</b> No
    <dd><b class="l3heading">Description:</b><br>
        This attribute indicates a specific default font typeface to be used
        instead of the normal default typeface of the browser. If the system
        that is viewing the document does not have the font typeface specified
        by this attribute then the browser default is used instead. To ease
        portability, multiple typefaces can be specified in the attribute value
        separated by commas. It will check for availability starting from the
        style name on the left, working its way right.
    <dd><b class="l3heading">Values:</b> <a href="../../../misc/glossary.htm#cdata">CDATA</a>.
        [Comma separated list of font names. Font names with spaces are encapsulated 
        with single quote characters.]

<dt><b class="subheading">Size</b>
<dt>[<span class="ns">2</span>|<span class="ns">3</span>|<b><i class="fs">3.2</i></b>|<b class="s">4</b>] 
    [<b class="s">X1</b>|<span class="ns">X1.1</span>]
    [<b class="s">IE1</b>|<span class="ns">M</span>|<b><i><u class="sr">N1-N4.x</u></i></b>|<b class="s">O2.1</b>]
    <dd><b class="l3heading"><a href="../stats.htm#std">Standards Details:</a></b> 
        Deprecated in HTML 4.x/XHTML 1.0; Dropped in XHTML 1.1;
    <dd><b class="l3heading">Required?</b> No
    <dd><b class="l3heading">Description:</b><br>
        This attribute changes the default size of text contained in FONT
        elements. Values can be specified relative to the default BASEFONT value of
        3 or as absolute values in the size range.
    <dd><b class="l3heading">Values:</b> <a href="../../../misc/glossary.htm#cdata">CDATA</a>.
        [Integers ranging from <b class="alert">1</b> (smallest) to
        <b class="alert">7</b> (largest) or relative size changes (an integer preceded 
        by a '+' or '-' character) based on a current base default size.]
</dl>


<a name="example"></a>
<dl>
<dt><big><b class="mainheading">Example</b></big>
    <dd><div class="example">Text Before<br>&lt;<b class="tagname">basefont</b>
        <span class="tagattrib">size</span>=&quot;5&quot;
        <span class="tagattrib">color</span>=&quot;#00ff00&quot;
        <span class="tagattrib">face</span>=&quot;Arial&quot;&gt;this is sample
        text&lt;/<b class="tagname">basefont</b>&gt;<br>Text After</div>
</dl>


<a name="model"></a>
<dl>
<dt><big><b class="mainheading">Parent Model</b></big>
    <dd><b class="alert">%<a href="../shorthands.htm#blockparent">Block Parent</a>%</b>
<dt><big><b class="mainheading">Content Model</b></big>
    <dd><b class="alert">%<a href="../shorthands.htm#inlinecontent">In-line Content</a>%</b> |
        <b class="alert">%<a href="../shorthands.htm#blockcontent">Block Content</a>%</b><br>
        <b class="alert">Exceptions:</b> &lt;<a href="../t/table.htm">table</a>&gt;
</dl>


<a name="tips"></a>
<big><b class="mainheading">Tips &amp; Tricks</b></big>
<ul>
    <li>Only the SIZE attribute of BASEFONT is currently widely supported.
        Other attributes are only supported by Internet Explorer, but HTML 4.0
        includes them. For now use of these other attributes is discouraged, but
        increased support may occur in time.
    <li><b class="alert">DTD NOTE:</b> Information on this element here
        should not be considered gospel by any means. HTML 3.2 and 4.0, as
        well as the Internet Explorer 3.0 DTD treat BASEFONT in a way that
        <em>I</em> consider <em>INCORRECT</em>. The mentioned DTDs treat BASEFONT
        as a stand-alone element, which totally eliminates a content model. The
        original Netscape description is nebulous on this point, but observed
        behavior of the element in IE and Netscape totally contradicts what the
        DTDs say - it is very obviously a container. I constructed a Parent/Content
        relationship based on this idea.
</ul>

<a name="peculiar"></a>
<big><b class="mainheading">Browser Peculiarities</b></big>
<ul>
    <li><a href="../../../testing/html/tags/b/basefont-bp4.htm">[Test]</a>
        Netscape 1.0-4.x and Internet Explorer versions ignore this element
        when applied around table structures. For it to apply within a table
        structure as well, one must apply FONT or BASEFONT elements in each
        table cell. This is painful. The only way to eliminate so much extra
        effort is to use style sheets.
    <li><a href="../../../testing/html/tags/b/basefont-bp3.htm">[Test]</a>
        The effect of BASEFONT SIZE in Internet Explorer 1.0-2.0, Netscape 1.0
        and Opera is to serve as a starting point in calculating relative FONT
        SIZE change values. Later versions of Internet Explorer and Netscape
        1.1-4.x allow the setting of a default font size for contained text.
    <li>[Tests: <a href="../../../testing/html/tags/b/basefont-bp1.htm">1</a>,
        <a href="../../../testing/html/tags/b/basefont-bp2.htm">2</a>]
        Neither Internet Explorer or Netscape 1.0-4.x apply the BASEFONT SIZE
        attribute value to heading levels. Internet Explorer <em>does</em>
        apply the FACE and COLOR values to headings though.
    <li>Beginning with Netscape 6.x, the BASEFONT element is no longer
        supported. They suggest using CSS to achieve the effects of BASEFONT as
        an alternative. To read more about this decision see Mozilla's
        <a href="http://bugzilla.mozilla.org/show_bug.cgi?id=3875">Bugzilla 3875</a>.
</ul>


<br>
<a href="../../../misc/copyright.htm">Boring Copyright Stuff...</a>

</BODY>
</HTML>
